import request from "@/utils/request";

// 查询团队信息列表
export function memberList(query) {
  return request({
    url: "/team/message/memberList",
    method: "get",
    params: query,
  });
}

// 新增成员
export function addMember(data) {
    return request({
      url: "/team/message/addMember",
      method: "post",
      data: data,
    });
  }

// 删除成员
export function deleteMember(ids) {
  return request({
    url: "/team/message/deleteMember/" + ids,
    method: "delete",
  });
}

// 编辑成员
export function updateMember(data) {
    return request({
      url: "/team/message/updateMember",
      method: "post",
      data: data,
    });
  }
// 获取等级为五或六的系统用户
export function userList(query) {
  return request({
    url: "/team/message/userList",
    method: "get",
    params: query,
  });
}

//  添加成员获取等级为6的用户
export function getLevelUserSix() {
  return request({
    url: "team/message/getLevelUserSix",
    method: "get"
  });
}
